package com.atguigu.tingshu.album.mapper;

import com.atguigu.tingshu.enums.AlbumStatType;
import com.atguigu.tingshu.model.album.AlbumInfo;
import com.atguigu.tingshu.query.album.AlbumInfoQuery;
import com.atguigu.tingshu.vo.album.AlbumInfoVo;
import com.atguigu.tingshu.vo.album.AlbumListVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AlbumInfoMapper extends BaseMapper<AlbumInfo> {

    /**
     * 描述：分页查询用户专辑列表
     *
     * @param page
     * @param albumInfoQuery
     * @param albumStatTypes
     * @return
     * @author daiyuling
     * @date 2025/10/25
     */
    Page<AlbumListVo> findUserAlbumPage(Page<AlbumListVo> page,
                                        @Param("albumInfoQuery") AlbumInfoQuery albumInfoQuery,
                                        @Param("albumStatTypes") List<AlbumStatType> albumStatTypes);

    /**
     * 描述：查询用户所有专辑
     *
     * @return
     * @author daiyuling
     * @date 2025/10/25
     */
    List<AlbumInfoVo> findUserAllAlbumList(@Param("userId") Long userId);
}
